package com.ruoyi.system.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.entity.SysRegion;

import java.util.List;

/**
 * 区域字典Service接口
 *
 * @author ruoyi
 * @date 2025-08-13
 */
public interface ISysRegionService extends IService<SysRegion>{

    SysRegion queryGetById(String id);

    List<SysRegion> queryChildrenByParentId(String parentId);

    boolean addSysRegion(SysRegion sysRegion);

    boolean updateSysRegion(SysRegion sysRegion);

    List<Tree<String>> getNodeTree();

    boolean deleteSysRegionByIds(String[] ids);

}